package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

@TableName(value = "activity")
public class Activity extends Model<Activity> {
    private static final long serialVersionUID = 1L;

    @TableId(value="acid", type= IdType.AUTO)
    private Integer acid;
    private String acName;
    private String acYear;
    private String comment;

    @Override
    public String toString() {
        return "Activity{" +
                "acid=" + acid +
                ", ac_name='" + acName + '\'' +
                ", ac_year='" + acYear + '\'' +
                ", comment='" + comment + '\'' +
                '}';
    }

    public Integer getAcid() {
        return acid;
    }

    public void setAcid(Integer acid) {
        this.acid = acid;
    }

    public String getAcName() {
        return acName;
    }

    public void setAcName(String acName) {
        this.acName = acName;
    }

    public String getAcYear() {
        return acYear;
    }

    public void setAcYear(String acYear) {
        this.acYear = acYear;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    protected Serializable pkVal() {
        return acid;
    }
}
